home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Stacks / Hyper Education / Library Hyper Card Templates / Open Stack / Acquisitions / background_2650.txt < prev    next >
Encoding:
Text File  |  1987-12-04  |  18.0 KB  |  782 lines

  1. -- background: 2650 from stack: in
  2. -- bmap block id: 3599
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7. ----------------------- Open Stack‚Ñ¢ Copyright 1987----------------------
  8. ----------------------- by the Walking Shadow Press --------------------
  9. on openCard
  10.   global bookNumber,fieldList, autoNumbering,tentativeBook
  11.  
  12.   if (script of this card is not empty) and (autoNumbering is true) then
  13.     if field "Book Number" is empty then
  14.       put bookNumber into field "Book Number"
  15.       put true into tentativeBook
  16.     end if
  17.   end if
  18.  
  19.   put field "Today's Date" into todayDate
  20.   if todayDate is empty then
  21.     put the short date into field "Today's Date"
  22.   end if
  23. end openCard
  24.  
  25. on closeCard
  26.   global bookNumber,fieldList,tentativeBook
  27.  
  28.   if fieldList is not empty then
  29.     set cursor to 4
  30.     if tentativeBook is true then
  31.       put quote&"Book Number""e&"," after fieldList
  32.       add 1 to bookNumber
  33.       put false into tentativeBook
  34.     end if
  35.  
  36.     put char 1 to (length(fieldList) - 1) of fieldList into fieldList
  37.     put fieldList into tempFieldList
  38.     put 0 into index
  39.  
  40.     put name of target into targName
  41.     repeat until tempFieldList is empty
  42.       add 1 to index
  43.       put item 1 of tempFieldList into fldTemp
  44.       put "put field "&fldTemp&" of "&targName& " into var"&index into cmdLine
  45.       do cmdLine
  46.       put empty into item 1 of tempFieldList
  47.       put empty into char 1 of tempFieldList -- rid leading comma.
  48.     end repeat
  49.  
  50.     set lockScreen to true
  51.     set lockMessages to true
  52.     push card
  53.     ----------------------- Circulation Card --------------------------
  54.     do line 5 of script of this card
  55.  
  56.     put empty into targetFieldList
  57.     repeat with indx = 1 to the number of fields
  58.       put (word 3 of name of field indx) & "," after targetFieldList
  59.     end repeat
  60.  
  61.     repeat with indx = 1 to index
  62.       put item indx of fieldList into tempItem
  63.       if tempItem is in targetFieldList then
  64.         put "put var"&indx&" into field "&tempItem into cmdLine
  65.         do cmdLine
  66.       end if
  67.     end repeat
  68.  
  69.     ---------------------- Catalog Screen -------------------------
  70.     do line 8 of script of this card
  71.  
  72.     put empty into targetFieldList
  73.     repeat with indx = 1 to the number of fields
  74.       put (word 3 of name of field indx) & "," after targetFieldList
  75.     end repeat
  76.  
  77.     repeat with indx = 1 to index
  78.       put item indx of fieldList into tempItem
  79.       if tempItem is in targetFieldList then
  80.         put "put var"&indx&" into field "&tempItem into cmdLine
  81.         do cmdLine
  82.       end if
  83.     end repeat
  84.     ---------------------- Label Screen -------------------------
  85.     do line 11 of script of this card
  86.  
  87.     put empty into targetFieldList
  88.     repeat with indx = 1 to the number of fields
  89.       put (word 3 of name of field indx) & "," after targetFieldList
  90.     end repeat
  91.  
  92.     repeat with indx = 1 to index
  93.       put item indx of fieldList into tempItem
  94.       if tempItem is in targetFieldList then
  95.         put "put var"&indx&" into field "&tempItem into cmdLine
  96.         do cmdLine
  97.       end if
  98.     end repeat
  99.     send innerReplication to this card
  100.     ------------------------------------------------------------------
  101.     pop card
  102.     set lockMessages to false
  103.     set lockScreen to false
  104.   end if
  105.  
  106.   if tentativeBook is true then
  107.     put empty into field "Book Number"
  108.     put false into tentativeBook
  109.   end if
  110.  
  111.   put empty into fieldList
  112. end closeCard
  113.  
  114. on newField
  115.   global fieldScript
  116.   put name of target into targName
  117.   if word 1 of targName is "bkgnd" then
  118.     ask "Name of field?"
  119.     put it into tmpFldName
  120.     if tmpFldName is empty then
  121.       answer "Unnamed; field will not copy to other stacks"
  122.     else
  123.       set name of targName to tmpFldName
  124.       set script of targName to fieldScript
  125.     end if
  126.   end if
  127. end newField
  128.  
  129. on doMenu parm
  130.   if name of this card is name of target then
  131.     if parm is "New Card" then
  132.       mkNewCard
  133.     else
  134.       if parm is "Delete Card" then
  135.         delCard
  136.       else
  137.         if parm is "New Field" then
  138.           set editBkgnd to true
  139.           pass doMenu
  140.         else
  141.           if parm is "Open Stack..." then
  142.             set cursor to 4
  143.             quit
  144.             pass doMenu
  145.           else
  146.             if parm is "Cut Card" then
  147.               -- cut card conditional
  148.             else
  149.               if parm is "Paste Card" then
  150.                 --
  151.               else
  152.                 pass doMenu
  153.               end if
  154.             end if
  155.           end if
  156.         end if
  157.       end if
  158.     end if
  159.   else
  160.     pass doMenu
  161.   end if
  162. end doMenu
  163.  
  164. --------------------- End Open Stack Routine ---------------------
  165.  
  166.  
  167.  
  168. -- part 8 (button)
  169. -- low flags: 00
  170. -- high flags: 0000
  171. -- rect: left=252 top=316 right=339 bottom=277
  172. -- title width / last selected line: 0
  173. -- icon id / first selected line: 27009 / 27009
  174. -- text alignment: 1
  175. -- font id: 0
  176. -- text size: 12
  177. -- style flags: 0
  178. -- line height: 16
  179. -- part name: Next
  180. ----- HyperTalk script -----
  181. on mouseUp
  182.   go to next card
  183. end mouseUp
  184.  
  185.  
  186.  
  187. -- part 9 (button)
  188. -- low flags: 00
  189. -- high flags: 0000
  190. -- rect: left=201 top=317 right=340 bottom=227
  191. -- title width / last selected line: 0
  192. -- icon id / first selected line: 9301 / 9301
  193. -- text alignment: 1
  194. -- font id: 0
  195. -- text size: 12
  196. -- style flags: 0
  197. -- line height: 16
  198. -- part name: Prev
  199. ----- HyperTalk script -----
  200. on mouseUp
  201.   go to prev card
  202. end mouseUp
  203.  
  204.  
  205.  
  206. -- part 55 (field)
  207. -- low flags: 00
  208. -- high flags: 0007
  209. -- rect: left=89 top=88 right=121 bottom=485
  210. -- title width / last selected line: 0
  211. -- icon id / first selected line: 0 / 0
  212. -- text alignment: 0
  213. -- font id: 2
  214. -- text size: 12
  215. -- style flags: 256
  216. -- line height: 16
  217. -- part name: Author
  218. ----- HyperTalk script -----
  219. on closeField
  220.   global fieldList
  221.   put word 3 of name of me into tempName
  222.   if not(fieldList contains tempName) then
  223.     put (word 3 of name of me) & "," after fieldList
  224.   end if
  225. end closeField
  226.  
  227.  
  228. -- part 36 (field)
  229. -- low flags: 00
  230. -- high flags: 0007
  231. -- rect: left=69 top=52 right=87 bottom=467
  232. -- title width / last selected line: 0
  233. -- icon id / first selected line: 0 / 0
  234. -- text alignment: 0
  235. -- font id: 2
  236. -- text size: 12
  237. -- style flags: 256
  238. -- line height: 16
  239. -- part name: Title
  240. ----- HyperTalk script -----
  241. on closeField
  242.   global fieldList
  243.   put word 3 of name of me into tempName
  244.   if not(fieldList contains tempName) then
  245.     put (word 3 of name of me) & "," after fieldList
  246.   end if
  247. end closeField
  248.  
  249.  
  250. -- part 57 (field)
  251. -- low flags: 00
  252. -- high flags: 0000
  253. -- rect: left=79 top=124 right=141 bottom=263
  254. -- title width / last selected line: 0
  255. -- icon id / first selected line: 0 / 0
  256. -- text alignment: 0
  257. -- font id: 2
  258. -- text size: 12
  259. -- style flags: 256
  260. -- line height: 16
  261. -- part name: Publisher
  262. ----- HyperTalk script -----
  263. on closeField
  264.   global fieldList
  265.   put word 3 of name of me into tempName
  266.   if not(fieldList contains tempName) then
  267.     put (word 3 of name of me) & "," after fieldList
  268.   end if
  269. end closeField
  270.  
  271.  
  272. -- part 51 (field)
  273. -- low flags: 00
  274. -- high flags: 0000
  275. -- rect: left=298 top=125 right=141 bottom=361
  276. -- title width / last selected line: 0
  277. -- icon id / first selected line: 0 / 0
  278. -- text alignment: 0
  279. -- font id: 2
  280. -- text size: 12
  281. -- style flags: 256
  282. -- line height: 16
  283. -- part name: Date
  284. ----- HyperTalk script -----
  285. on closeField
  286.   global fieldList
  287.   put word 3 of name of me into tempName
  288.   if not(fieldList contains tempName) then
  289.     put (word 3 of name of me) & "," after fieldList
  290.   end if
  291. end closeField
  292.  
  293.  
  294. -- part 21 (field)
  295. -- low flags: 00
  296. -- high flags: 0000
  297. -- rect: left=55 top=205 right=221 bottom=127
  298. -- title width / last selected line: 0
  299. -- icon id / first selected line: 0 / 0
  300. -- text alignment: 0
  301. -- font id: 2
  302. -- text size: 12
  303. -- style flags: 256
  304. -- line height: 16
  305. -- part name: Price
  306. ----- HyperTalk script -----
  307. on closeField
  308.   global fieldList
  309.   put word 3 of name of me into tempName
  310.   if not(fieldList contains tempName) then
  311.     put (word 3 of name of me) & "," after fieldList
  312.   end if
  313.  
  314.   put empty into field "total"
  315.   add field "price" to field "total"
  316.   add field "shipping" to field "total"
  317.   add field "tax" to field "total"
  318.  
  319. end closeField
  320.  
  321.  
  322. -- part 22 (field)
  323. -- low flags: 00
  324. -- high flags: 0000
  325. -- rect: left=198 top=205 right=221 bottom=265
  326. -- title width / last selected line: 0
  327. -- icon id / first selected line: 0 / 0
  328. -- text alignment: 0
  329. -- font id: 2
  330. -- text size: 12
  331. -- style flags: 256
  332. -- line height: 16
  333. -- part name: Shipping
  334. ----- HyperTalk script -----
  335. on closeField
  336.   global fieldList
  337.   put word 3 of name of me into tempName
  338.   if not(fieldList contains tempName) then
  339.     put (word 3 of name of me) & "," after fieldList
  340.   end if
  341.  
  342.   put empty into field "total"
  343.   add field "price" to field "total"
  344.   add field "shipping" to field "total"
  345.   add field "tax" to field "total"
  346.  
  347. end closeField
  348.  
  349.  
  350. -- part 23 (field)
  351. -- low flags: 00
  352. -- high flags: 0000
  353. -- rect: left=294 top=204 right=220 bottom=345
  354. -- title width / last selected line: 0
  355. -- icon id / first selected line: 0 / 0
  356. -- text alignment: 0
  357. -- font id: 2
  358. -- text size: 12
  359. -- style flags: 256
  360. -- line height: 16
  361. -- part name: Tax
  362. ----- HyperTalk script -----
  363. on closeField
  364.   global fieldList
  365.   put word 3 of name of me into tempName
  366.   if not(fieldList contains tempName) then
  367.     put (word 3 of name of me) & "," after fieldList
  368.   end if
  369.  
  370.   put empty into field "total"
  371.   add field "price" to field "total"
  372.   add field "shipping" to field "total"
  373.   add field "tax" to field "total"
  374.  
  375. end closeField
  376.  
  377.  
  378. -- part 24 (field)
  379. -- low flags: 00
  380. -- high flags: 0002
  381. -- rect: left=405 top=202 right=222 bottom=491
  382. -- title width / last selected line: 0
  383. -- icon id / first selected line: 0 / 0
  384. -- text alignment: 0
  385. -- font id: 2
  386. -- text size: 14
  387. -- style flags: 256
  388. -- line height: 18
  389. -- part name: Total
  390. ----- HyperTalk script -----
  391. on closeField
  392.   global fieldList
  393.   put word 3 of name of me into tempName
  394.   if not(fieldList contains tempName) then
  395.     put (word 3 of name of me) & "," after fieldList
  396.   end if
  397. end closeField
  398.  
  399.  
  400. -- part 25 (field)
  401. -- low flags: 00
  402. -- high flags: 0000
  403. -- rect: left=85 top=234 right=249 bottom=158
  404. -- title width / last selected line: 0
  405. -- icon id / first selected line: 0 / 0
  406. -- text alignment: 0
  407. -- font id: 2
  408. -- text size: 12
  409. -- style flags: 0
  410. -- line height: 16
  411. -- part name: Date paid
  412. ----- HyperTalk script -----
  413. on closeField
  414.   global fieldList
  415.   put word 3 of name of me into tempName
  416.   if not(fieldList contains tempName) then
  417.     put (word 3 of name of me) & "," after fieldList
  418.   end if
  419. end closeField
  420.  
  421.  
  422. -- part 26 (field)
  423. -- low flags: 00
  424. -- high flags: 0000
  425. -- rect: left=259 top=233 right=249 bottom=328
  426. -- title width / last selected line: 0
  427. -- icon id / first selected line: 0 / 0
  428. -- text alignment: 0
  429. -- font id: 3
  430. -- text size: 12
  431. -- style flags: 0
  432. -- line height: 16
  433. -- part name: Date returned
  434. ----- HyperTalk script -----
  435. on closeField
  436.   global fieldList
  437.   put word 3 of name of me into tempName
  438.   if not(fieldList contains tempName) then
  439.     put (word 3 of name of me) & "," after fieldList
  440.   end if
  441. end closeField
  442.  
  443.  
  444. -- part 28 (button)
  445. -- low flags: 00
  446. -- high flags: 8003
  447. -- rect: left=278 top=317 right=339 bottom=382
  448. -- title width / last selected line: 0
  449. -- icon id / first selected line: 0 / 0
  450. -- text alignment: 1
  451. -- font id: 0
  452. -- text size: 12
  453. -- style flags: 0
  454. -- line height: 16
  455. -- part name: Catalog Screen
  456. ----- HyperTalk script -----
  457. on mouseUp
  458.   goCat
  459. end mouseUp
  460.  
  461.  
  462. -- part 29 (button)
  463. -- low flags: 00
  464. -- high flags: 8003
  465. -- rect: left=383 top=317 right=339 bottom=496
  466. -- title width / last selected line: 0
  467. -- icon id / first selected line: 0 / 0
  468. -- text alignment: 1
  469. -- font id: 0
  470. -- text size: 12
  471. -- style flags: 0
  472. -- line height: 16
  473. -- part name: Circulation Card
  474. ----- HyperTalk script -----
  475. on mouseUp
  476.   goCirc
  477. end mouseUp
  478.  
  479.  
  480. -- part 31 (button)
  481. -- low flags: 00
  482. -- high flags: 8003
  483. -- rect: left=216 top=276 right=299 bottom=272
  484. -- title width / last selected line: 0
  485. -- icon id / first selected line: 0 / 0
  486. -- text alignment: 1
  487. -- font id: 0
  488. -- text size: 12
  489. -- style flags: 0
  490. -- line height: 16
  491. -- part name: Help!
  492. ----- HyperTalk script -----
  493. on mouseUp
  494.   go to stack "Acquisitions Help"
  495. end mouseUp
  496.  
  497.  
  498.  
  499. -- part 32 (field)
  500. -- low flags: 00
  501. -- high flags: 0000
  502. -- rect: left=350 top=164 right=180 bottom=427
  503. -- title width / last selected line: 0
  504. -- icon id / first selected line: 0 / 0
  505. -- text alignment: 0
  506. -- font id: 2
  507. -- text size: 12
  508. -- style flags: 0
  509. -- line height: 16
  510. -- part name: Date ordered
  511. ----- HyperTalk script -----
  512. on closeField
  513.   global fieldList
  514.   put word 3 of name of me into tempName
  515.   if not(fieldList contains tempName) then
  516.     put (word 3 of name of me) & "," after fieldList
  517.   end if
  518. end closeField
  519.  
  520.  
  521. -- part 33 (field)
  522. -- low flags: 00
  523. -- high flags: 0000
  524. -- rect: left=350 top=182 right=198 bottom=429
  525. -- title width / last selected line: 0
  526. -- icon id / first selected line: 0 / 0
  527. -- text alignment: 0
  528. -- font id: 2
  529. -- text size: 12
  530. -- style flags: 0
  531. -- line height: 16
  532. -- part name: Date received
  533. ----- HyperTalk script -----
  534. on closeField
  535.   global fieldList
  536.   put word 3 of name of me into tempName
  537.   if not(fieldList contains tempName) then
  538.     put (word 3 of name of me) & "," after fieldList
  539.   end if
  540. end closeField
  541.  
  542.  
  543. -- part 45 (field)
  544. -- low flags: 00
  545. -- high flags: 0000
  546. -- rect: left=500 top=330 right=342 bottom=512
  547. -- title width / last selected line: 0
  548. -- icon id / first selected line: 0 / 0
  549. -- text alignment: 0
  550. -- font id: 3
  551. -- text size: 12
  552. -- style flags: 0
  553. -- line height: 16
  554. -- part name: der
  555. ----- HyperTalk script -----
  556. on closeField
  557.   get field "der"
  558.   put the number of this card into cardNum
  559.   set lockScreen to true
  560.   push card
  561.   go to card cardNum of stack "HyperCirc"
  562.   put it into background field "Title"
  563.   pop card
  564.   set lockscreen to false
  565. end closeField
  566.  
  567.  
  568.  
  569. -- part 52 (field)
  570. -- low flags: 00
  571. -- high flags: 0002
  572. -- rect: left=134 top=156 right=171 bottom=213
  573. -- title width / last selected line: 0
  574. -- icon id / first selected line: 0 / 0
  575. -- text alignment: 0
  576. -- font id: 2
  577. -- text size: 12
  578. -- style flags: 256
  579. -- line height: 16
  580. -- part name: Vendor number
  581. ----- HyperTalk script -----
  582. on closeField
  583.   global fieldList
  584.   put word 3 of name of me into tempName
  585.   if not(fieldList contains tempName) then
  586.     put (word 3 of name of me) & "," after fieldList
  587.   end if
  588. end closeField
  589.  
  590.  
  591. -- part 62 (field)
  592. -- low flags: 01
  593. -- high flags: 0000
  594. -- rect: left=414 top=233 right=249 bottom=489
  595. -- title width / last selected line: 0
  596. -- icon id / first selected line: 0 / 0
  597. -- text alignment: 0
  598. -- font id: 2
  599. -- text size: 12
  600. -- style flags: 256
  601. -- line height: 16
  602. -- part name: Today's date
  603.  
  604.  
  605. -- part 64 (field)
  606. -- low flags: 00
  607. -- high flags: 0002
  608. -- rect: left=398 top=122 right=138 bottom=485
  609. -- title width / last selected line: 0
  610. -- icon id / first selected line: 0 / 0
  611. -- text alignment: 0
  612. -- font id: 3
  613. -- text size: 12
  614. -- style flags: 0
  615. -- line height: 16
  616. -- part name: ISBN
  617. ----- HyperTalk script -----
  618. on closeField
  619.   global fieldList
  620.   put word 3 of name of me into tempName
  621.   if not(fieldList contains tempName) then
  622.     put (word 3 of name of me) & "," after fieldList
  623.   end if
  624. end closeField
  625.  
  626.  
  627. -- part 65 (field)
  628. -- low flags: 00
  629. -- high flags: 0002
  630. -- rect: left=399 top=142 right=158 bottom=485
  631. -- title width / last selected line: 0
  632. -- icon id / first selected line: 0 / 0
  633. -- text alignment: 0
  634. -- font id: 3
  635. -- text size: 12
  636. -- style flags: 0
  637. -- line height: 16
  638. -- part name: LCCN
  639. ----- HyperTalk script -----
  640. on closeField
  641.   global fieldList
  642.   put word 3 of name of me into tempName
  643.   if not(fieldList contains tempName) then
  644.     put (word 3 of name of me) & "," after fieldList
  645.   end if
  646. end closeField
  647.  
  648.  
  649. -- part 67 (button)
  650. -- low flags: 00
  651. -- high flags: 8003
  652. -- rect: left=162 top=318 right=340 bottom=198
  653. -- title width / last selected line: 0
  654. -- icon id / first selected line: 0 / 0
  655. -- text alignment: 1
  656. -- font id: 0
  657. -- text size: 12
  658. -- style flags: 0
  659. -- line height: 16
  660. -- part name: Sort
  661. ----- HyperTalk script -----
  662. on mouseUp
  663.   ask "Sort on which field?" with "Book Number"
  664.   put it into fld
  665.   if it is not empty then
  666.     answer "Sort fields" with "Descending" or "Ascending"
  667.     if it is "Ascending" then
  668.       sort ascending by field fld
  669.     else
  670.       sort descending by field fld
  671.     end if
  672.   end if
  673. end mouseUp
  674.  
  675.  
  676.  
  677. -- part 79 (button)
  678. -- low flags: 00
  679. -- high flags: 8003
  680. -- rect: left=9 top=318 right=339 bottom=91
  681. -- title width / last selected line: 0
  682. -- icon id / first selected line: 0 / 0
  683. -- text alignment: 1
  684. -- font id: 0
  685. -- text size: 12
  686. -- style flags: 0
  687. -- line height: 16
  688. -- part name: Print Labels
  689. ----- HyperTalk script -----
  690. on mouseUp
  691.   goLab
  692. end mouseUp
  693.  
  694.  
  695.  
  696. -- part 80 (button)
  697. -- low flags: 00
  698. -- high flags: 8003
  699. -- rect: left=90 top=318 right=340 bottom=163
  700. -- title width / last selected line: 0
  701. -- icon id / first selected line: 0 / 0
  702. -- text alignment: 1
  703. -- font id: 0
  704. -- text size: 12
  705. -- style flags: 0
  706. -- line height: 16
  707. -- part name: Control
  708. ----- HyperTalk script -----
  709. on mouseUp
  710.   visual effect barn door close
  711.   go to stack "Control"
  712. end mouseUp
  713.  
  714.  
  715.  
  716. -- part 106 (field)
  717. -- low flags: 00
  718. -- high flags: 0000
  719. -- rect: left=388 top=35 right=52 bottom=454
  720. -- title width / last selected line: 0
  721. -- icon id / first selected line: 0 / 0
  722. -- text alignment: 0
  723. -- font id: 2
  724. -- text size: 12
  725. -- style flags: 256
  726. -- line height: 16
  727. -- part name: Book Number
  728. ----- HyperTalk script -----
  729. on closeField
  730.   global fieldList,bookNumber,tentativeBook
  731.   if tentativeBook is true then
  732.     put field "Book Number" into bookNumber
  733.   else
  734.  
  735.     put word 3 of name of me into tempName
  736.     if not(fieldList contains tempName) then
  737.       put (word 3 of name of me) & "," after fieldList
  738.     end if
  739.   end if
  740. end closeField
  741.  
  742.  
  743. -- part 108 (button)
  744. -- low flags: 00
  745. -- high flags: 8003
  746. -- rect: left=226 top=301 right=318 bottom=264
  747. -- title width / last selected line: 0
  748. -- icon id / first selected line: 0 / 0
  749. -- text alignment: 1
  750. -- font id: 0
  751. -- text size: 12
  752. -- style flags: 0
  753. -- line height: 16
  754. -- part name: Find
  755. ----- HyperTalk script -----
  756. on mouseUp
  757.   ask "What do you wish to find?"
  758.   find it
  759. end mouseUp
  760.  
  761.  
  762. -- part 109 (button)
  763. -- low flags: 00
  764. -- high flags: 8003
  765. -- rect: left=141 top=175 right=197 bottom=241
  766. -- title width / last selected line: 0
  767. -- icon id / first selected line: 0 / 0
  768. -- text alignment: 1
  769. -- font id: 0
  770. -- text size: 12
  771. -- style flags: 0
  772. -- line height: 16
  773. -- part name: Vendor Screen
  774. ----- HyperTalk script -----
  775. on mouseUp
  776.   put field "Vendor Number" into vendNum
  777.   go to stack "Vendor"
  778.   find vendNum in field "Vendor Number"
  779. end mouseUp
  780.  
  781.  
  782.